<?php include $this->header();?>
<?php if(false) {?>
<link rel="stylesheet" rev="stylesheet" href="../../../images/admincp/style.css" type="text/css" media="all" />
<?php }?>
<div class="wrap">
<form method="post" enctype="multipart/form-data" target="_self" onsubmit="return Validator.Validate(this)">
<div class="bd p1 mt">
    <ul class="tabs">
        <li><a href="javascript:;" id="tab-1">基本选项</a></li>
        <li><a href="javascript:;" id="tab-2">SEO</a></li>
    </ul>
    <div class="panes">
      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="rank">
        <tr>
            <td colspan="2" align="right" valign="middle" style="height:1px; line-height:1px; overflow:hidden;border:none;">&nbsp;</td>
        </tr>
        <tr>
            <td width="140" align="right" valign="middle">标题</td>
            <td><input type="text" class="text-box" name="info_title" size="60" id="info_title" dataType="LimitB" min="8" max="80" msg="请填写4-40个中文字符，8-80个英文字符" onblur="Validator.check(this)" /> 
                <b class="red">* </b>
                <span class="note">建议使用主题相关的关键词。</span>
            </td>
        </tr>
        <tr>
            <td align="right" valign="middle">分类</td>
            <td>
              <select name="cat_id" id="cat_id">
                  <option value="0">未分类</option>
                  <?php foreach ($_cats as $_cat) {?>
                  <option value="<?=$_cat['cat_id']?>" <?php if(!empty($_GET['cat_id']) && $_GET['cat_id'] == $_cat['cat_id']){?>selected="selected"<?php }?>><?=$_cat['icon']?><?=$_cat['cat_name']?></option>
                  <?php }?>
                  
              </select>
              <span class=" note">（不选择则为默认分类）</span></td>
        </tr>
        <tr>
            <td align="right" valign="middle" style="background:#F4F9FC;">缩略图</td>
            <td ><img src="images/admincp/ico-news.jpg" style="padding:4px; background:#FFF; border:1px solid #E6E6E6; margin:0 0 8px 0 ;" /><br /><input name="info_cover" type="file" id="info_cover" dataType="Filter" msg="非法的文件格式" require="false" accept="jpg, gif, png" onchange="Validator.check(this)" /></td>
        </tr>
        <tr>
            <td align="right" valign="middle">详细内容</td>
            <td><textarea id="info_content" class="info_content" name="info_content" rows="26" style="width:99%; " ></textarea></td>
        </tr>
        <tr>
            <td width="140" align="right" valign="middle">作者</td>
            <td><input name="info_author" type="text" class="text-box" id="info_author" value="<?=$_SESSION['user_realname']?>" size="45" /></td>
        </tr>
        <tr>
            <td width="140" align="right" valign="middle">来源网站</td>
            <td><input name="info_from" type="text" class="text-box" id="info_from" value="<?=$SITE_NAME?>" size="45" /></td>
        </tr>
        <tr>
            <td width="140" align="right" valign="middle">来源URL</td>
            <td><input name="info_from_url" type="text" class="text-box" id="info_from_url" value="#" size="45" />
                <span class="note">（填写这篇资讯来源的网页地址）</span></td>
        </tr>
        <tr>
            <td width="140" align="right" valign="middle">责任编辑</td>
            <td><input name="info_editor" type="text" class="text-box" id="info_editor" value="<?=$_SESSION['user_realname']?>" size="45" /></td>
        </tr>
        <tr>
            <td align="right" valign="middle">发布</td>
            <td><input name="info_is_draft" value="0" checked="checked" type="radio" />
                是
    <input name="info_is_draft" value="1" type="radio" />否 </td>
        </tr>
        <tr>
            <td align="right" valign="middle">排序</td>
            <td><input type="text" class="text-box" name="info_order" id="info_order" size="4" />
                <span class="note">（数字越小，排序越靠前;一般情况下，不需要对排序进行设置）</span></td>
        </tr>
        <tr>
            <td align="right" valign="middle" class="nobd">&nbsp;</td>
            <td class="nobd"><input class="btn" type="submit" value="添加" />
                <input name="重置" type="reset" class="btn" value="重置" /></td>
        </tr>
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="rank">
        <tr>
            <td colspan="2" align="right" valign="middle" style="height:1px; line-height:1px; overflow:hidden; border:none;">&nbsp;</td>
        </tr>
        <tr>
            <td width="140" align="right" valign="middle">页面标题</td>
            <td><input name="info_slug" type="text" class="text-box" id="info_slug" size="63" />
                <span class="note">(留空则默认使用商品名称)</span>
            </td>
        </tr>
        <tr>
            <td width="140" align="right" valign="middle">页面关键词</td>
            <td><input name="info_keywords" type="text" class="text-box" id="info_keywords" size="63" /> <span class="note">(留空则默认继承分类或全局设置的KEYWORDS内容)</span></td>
        </tr>
        <tr>
            <td width="140" align="right" valign="middle">页面摘要</td>
            <td>
                <textarea name="info_desc" id="info_desc" cols="60" rows="6"></textarea> <span class="note"> (留空则默认继承分类或全局设置的DESCRIPTION内容)</span>
            </td>
        </tr>
        <tr>
            <td align="right" valign="middle" class="nobd">&nbsp;</td>
            <td class="nobd"><input class="btn" type="submit" value="添加" />
                <input name="重置" type="reset" class="btn" value="重置" /></td>
        </tr>
      </table>
    </div>
</div>
</form>
</div>
<script type="text/javascript" src="js/editor/xheditor-zh-cn.js"></script>
<script type="text/javascript" src="js/editor.js"></script>
<script type="text/javascript">
//<![CDATA[
$(document).ready(function(){
    $("ul.tabs").tabs("div.panes > table");
	$.ajaxf.init('js/AJAX.swf?'+Math.random());
});
ueEditor.apply('#info_content');
//]]>
</script>

<?php include $this->footer();?>
<?php if(false) {?>
<script type="text/javascript" src="/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="/js/ajaxf.js"></script>
<script type="text/javascript" src="/js/jquery.tools.min.js"></script>
<script type="text/javascript" src="/js/validator.js"></script>
<script type="text/javascript" src="/js/global.js"></script>

<script type="text/javascript" src="/js/editor/xheditor-zh-cn.js"></script>
<script type="text/javascript" src="/js/editor.js"></script>
<?php } ?>